<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="shortcut icon" href="${ctx}/public/logo.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="${ctx}/public/css/font.css">
    <link rel="stylesheet" href="${ctx}/public/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="${ctx}/public/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${ctx}/public/js/xadmin.js"></script>

</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a>人事管理系统</a></div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>

    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:"><b>${sessionScope.user.loginname }</b></a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a onclick="x_admin_show('个人信息','${ctx }/toMyupdate')">个人信息</a></dd>
                <dd><a onclick="x_admin_show('切换帐号','${ctx}/tologin')">切换帐号</a></dd>
                <dd><a href="${ctx}/tologin">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index"><a>欢迎登录</a></li>
    </ul>

</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6b8;</i>
                    <cite>用户管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="${ctx}/SearchAll">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>用户列表</cite>

                        </a>
                    </li>
                    <li>
                        <a _href="${ctx}/toAddUser">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>添加用户</cite>
                        </a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe723;</i>
                    <cite>部门管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="${ctx }/getAllDept">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>部门列表</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="${ctx }/toAddDept">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>添加部门</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe723;</i>
                    <cite>职位管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="${ctx }/getAllJob">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>职位列表</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="${ctx }/toAddJob">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>添加职位</cite>
                        </a>
                    </li>
                </ul>
            </li>

            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe726;</i>
                    <cite>员工管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="${ctx }/getAllEmployee">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>员工列表</cite>
                        </a>
                    </li>
                    <li>
                        <a _href="${ctx }/toAddEmployee">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>添加员工</cite>
                        </a>
                    </li>
                </ul>
            </li>
            <%--            <li>--%>
            <%--                <a href="javascript:;">--%>
            <%--                    <i class="iconfont">&#xe6ce;</i>--%>
            <%--                    <cite>公告管理</cite>--%>
            <%--                    <i class="iconfont nav_right">&#xe697;</i>--%>
            <%--                </a>--%>
            <%--                <ul class="sub-menu">--%>
            <%--                    <li>--%>
            <%--                        <a _href="${ctx }/notice/list">--%>
            <%--                            <i class="iconfont">&#xe6a7;</i>--%>
            <%--                            <cite>公告查询</cite>--%>
            <%--                        </a>--%>
            <%--                    </li >--%>
            <%--                    <li>--%>
            <%--                        <a _href="${ctx }/notice/add">--%>
            <%--                            <i class="iconfont">&#xe6a7;</i>--%>
            <%--                            <cite>添加公告</cite>--%>
            <%--                        </a>--%>
            <%--                    </li >--%>
            <%--                   --%>
            <%--                   --%>
            <%--                </ul>--%>
            <%--            </li>--%>
            <%--            <li>--%>
            <%--                <a href="javascript:;">--%>
            <%--                    <i class="iconfont">&#xe6b4;</i>--%>
            <%--                    <cite>下载中心</cite>--%>
            <%--                    <i class="iconfont nav_right">&#xe697;</i>--%>
            <%--                </a>--%>
            <%--                <ul class="sub-menu">--%>
            <%--                    <li>--%>
            <%--                        <a _href="${ctx }/document/list">--%>
            <%--                            <i class="iconfont">&#xe6a7;</i>--%>
            <%--                            <cite>文档查询</cite>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                    <li>--%>
            <%--                        <a _href="${ctx }/document/add">--%>
            <%--                            <i class="iconfont">&#xe6a7;</i>--%>
            <%--                            <cite>上传文档</cite>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                </ul>--%>
            <%--            </li>--%>
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <%--                    <iframe src="${pageContext.request.contextPath}/WEB-INF/page/welcome.jsp" frameborder="0" scrolling="yes" class="x-iframe"></iframe>--%>
                <div class="x-body layui-anim layui-anim-up">
                    <blockquote class="layui-elem-quote">欢迎管理员：
                        <span class="x-red">${sessionScope.user.loginname }</span>！
                        <div id="showDate">当前时间:123</div>
                    </blockquote>
                    <fieldset class="layui-elem-field">
                        <legend>数据统计</legend>
                        <div class="layui-field-box">
                            <div class="layui-col-md12">
                                <div class="layui-card">
                                    <div class="layui-card-body">
                                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim=""
                                             lay-indicator="inside"
                                             lay-arrow="none" style="width: 100%; height: 90px;">
                                            <div carousel-item="">
                                                <ul class="layui-row layui-col-space10 layui-this">
                                                    <li class="layui-col-xs2">
                                                        <a href="javascript:;" class="x-admin-backlog-body">
                                                            <h3>管理员数</h3>
                                                            <p>
                                                                <cite>${statistics.usernum}</cite>
                                                            </p>
                                                        </a>
                                                    </li>
                                                    <li class="layui-col-xs2">
                                                        <a href="javascript:;" class="x-admin-backlog-body">
                                                            <h3>部门数</h3>
                                                            <p>
                                                                <cite>${statistics.deptnum}</cite>
                                                            </p>
                                                        </a>
                                                    </li>
                                                    <li class="layui-col-xs2">
                                                        <a href="javascript:;" class="x-admin-backlog-body">
                                                            <h3>职工数</h3>
                                                            <p>
                                                                <cite>${statistics.employeenum}</cite>
                                                            </p>
                                                        </a>
                                                    </li>
                                                    <%--                                            <li class="layui-col-xs2">--%>
                                                    <%--                                                <a href="javascript:;" class="x-admin-backlog-body">--%>
                                                    <%--                                                    <h3>公告数</h3>--%>
                                                    <%--                                                    <p>--%>
                                                    <%--                                                        <cite>${headerr.noticeNum}</cite></p>--%>
                                                    <%--                                                </a>--%>
                                                    <%--                                            </li>--%>
                                                    <%--                                            <li class="layui-col-xs2">--%>
                                                    <%--                                                <a href="javascript:;" class="x-admin-backlog-body">--%>
                                                    <%--                                                    <h3>文件数</h3>--%>
                                                    <%--                                                    <p>--%>
                                                    <%--                                                        <cite>${headerr.docNum}</cite></p>--%>
                                                    <%--                                                </a>--%>
                                                    <%--                                            </li>--%>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>

                    <fieldset class="layui-elem-field">
                        <legend>系统信息</legend>
                        <div class="layui-field-box">
                            <table class="layui-table">
                                <tbody>
                                <tr>
                                    <th>版本</th>
                                    <td>1.0</td>
                                </tr>
                                <tr>
                                    <th>服务器地址</th>
                                    <td>http://localhost:8080/</td>
                                </tr>
                                <tr>
                                    <th>操作系统</th>
                                    <td>win10</td>
                                </tr>
                                <tr>
                                    <th>运行环境</th>
                                    <td>Apache Tomcat 8.5.75</td>
                                </tr>
                                <tr>
                                    <th>MYSQL版本</th>
                                    <td>5.6</td>
                                </tr>
                                <tr>
                                    <th>jdk</th>
                                    <td>1.8</td>
                                </tr>
                                <tr>
                                    <th>剩余空间</th>
                                    <td>1wt</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field">
                        <legend>开发团队</legend>
                        <div class="layui-field-box">
                            <table class="layui-table">
                                <tbody>
                                <tr>
                                    <th>版权所有</th>
                                    <td>
                                        <a href="" class='x-a' target="_blank">HHQ</a></td>
                                </tr>
                                <tr>
                                    <th>开发者</th>
                                    <td>HHQ</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </fieldset>
                    <blockquote class="layui-elem-quote layui-quote-nm">thanks av8d</blockquote>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<!-- 底部开始 -->
<div class="footer">
    <div class="copyright">Copyright ©2023 x-admin v2.3 All Rights Reserved</div>
</div>
<!-- 底部结束 -->


</script>

<script type="text/javascript">
    var i = 0;

    function myDate() {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth() + 1;
        var day = now.getDate();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds();

        document.getElementById("showDate").innerHTML = "当前时间 :  " + year + "年 " + month + "月 " + day
            + "日 " + hours + "：" + minutes + "：" + seconds;
    }

    setInterval(myDate, 1000);
</script>
</body>

</html>